//
//  HMLuckyViewController.m
//  网易彩票01
//
//  Created by Macx on 16/2/21.
//  Copyright © 2016年 Macx. All rights reserved.
//

#import "HMLuckyViewController.h"
#import "HMLuckyWheelViewController.h"
@interface HMLuckyViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *bgView;
@property (weak, nonatomic) IBOutlet UIImageView *lightView;

@end

@implementation HMLuckyViewController

//点击转盘创建显示下一页
- (IBAction)luckyWhellViewClick {
    HMLuckyWheelViewController *vc=[[HMLuckyWheelViewController alloc]init];
    
    [self presentViewController:vc animated:YES completion:nil];
    
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    if (is4inch) {
        self.bgView.image = [UIImage imageNamed:@"luck_entry_background-568h@2x.jpg"];
    } else {
        self.bgView.image = [UIImage imageNamed:@"luck_entry_background@2x.jpg"];
    }
    
    UIImage *image1=[UIImage imageNamed:@"lucky_entry_light0"];
    UIImage *image2=[UIImage imageNamed:@"lucky_entry_light1"];
    NSArray *images=[NSArray arrayWithObjects:image1,image2, nil];
    self.lightView.animationImages=images;
    self.lightView.animationDuration=0.5;
    self.lightView.animationRepeatCount=MAXFLOAT;
    
    [self.lightView startAnimating];
    
    }


@end
